#ifndef ALBUM_H
#define ALBUM_H

#include "title.h"
#include "dom.h"

#include <boost/shared_ptr.hpp>

#include <string>
#include <list>

using namespace std;

namespace model {
	class album {
	public:
		album() {}
		album(const model::dom &node);
		album(const string &name, const list<model::title> t)
		: _name(name), _titles(t) {}
		~album() {}

		void parse(const model::dom &node);

		void set_name(const string &name) { _name = name; }
		const string& get_name() const {return _name;}

		void set_titles(const list<model::title> &t) {_titles = t;}
		const list<model::title>& get_titles() const {return _titles;}
		list<model::title>& get_titles() {return _titles;}

		void print() const;
	private:
		string _name;
		list<model::title> _titles;
	};
}

#endif
